cmake_minimum_required(VERSION 3.16)

project(windowthumbnail)

set(CMAKE_CXX_STANDARD 17)

set(CMAKE_AUTOMOC ON)
set(CMAKE_AUTORCC ON)
set(CMAKE_AUTOUIC ON)

find_package(Qt5 COMPONENTS Widgets X11Extras REQUIRED)

add_executable(windowthumbnail main.cpp windowthumbnail.cpp)

target_link_libraries(windowthumbnail Qt5::Widgets Qt5::X11Extras X11 xcb xcb-render xcb-composite)